package com.aaa.service.sds;

import com.aaa.entity.PageSortEntity;
import com.aaa.entity.sds.TestResultSds;
import com.aaa.entity.sds.ViewTestResultSds;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

/**
 * (ViewTestResultSds)表服务接口
 *
 * @author makejava
 * @since 2022-09-06 15:05:20
 */
public interface ViewTestResultSdsService {

    /**
     * @param pageSortEntity
     * @param viewTestResultSds
     * @return
     * @create by: 张恒
     * @description: 查询
     * @create time: 2022/9/6 15:08
     */
    Page queryViewTestResultSds(PageSortEntity pageSortEntity, ViewTestResultSds viewTestResultSds);


    /**
     * @param
     * @return
     * @create by: 张恒
     * @description: 删除
     * @create time: 2022/9/6 15:09
     */
    boolean deleteViewTestResultSds(Integer[] id);


    /**
     * @param viewTestResultSds
     * @return
     * @create by: 张恒
     * @description: 根据id查询信息
     * @create time: 2022/9/6 19:12
     */
    ViewTestResultSds queryViewTestResultSdsById(ViewTestResultSds viewTestResultSds);

    /**
     * @param
     * @return
     * @create by: 张恒
     * @description: 查询人数
     * @create time: 2022/9/6 20:17
     */
    Map<String, Integer> queryViewTestResultSdsCount();


    /**
     * @param
     * @return
     * @create by: 张恒
     * @description: 测试结果跳转
     * @create time: 2022/9/7 17:27
     */
    String querySdsById(Integer id);


    /**
     * @create by: 张恒
     * @description: 查看问题学生
     * @create time: 2022/9/9 8:47
     * @param
     * @return
     */
    List<ViewTestResultSds> queryViewTestResultSdsBySum(Integer sum);


    /**
     * @create by: 张恒
     * @description: 查看测试详情
     * @create time: 2022/9/13 8:59
     * @param pageSortEntity
     * @param id
     * @return
     */
    Page queryResultByQuestion(PageSortEntity pageSortEntity, TestResultSds id);
}
